<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:divth="http://www.w3.org/1999/xlink">
	<head>
		<meta charset="utf-8">
		<title>搜索</title>
		<link rel="stylesheet" type="text/css" href="css/site.css" th:href="@{/css/site.css}"/>
		<link rel="stylesheet" type="text/css" href="css/search.css" th:href="@{/css/search.css}"/>
		<!--<script src="../static/js/jquery-2.1.4.js"></script>-->
	</head>
	<body>
	<div th:replace="~{/commons/Header :: header}"></div>
		
		<!-- 查询区域 -->
			<div class="main">
			<div class="crumbs">
				<div class="container">
					<a href="">首页</a>
					>
					<a href="">全部结果</a>
					>
					<a href="">图书</a>
				</div>
			</div>
			<div class="sort">
				<div class="container">
					<ul class="clear first-sort">
						<span class="label">一级分类:</span>
						<li class="active"><a href="">全部</a></li>
						<li><a href="">红米手机</a></li>
						<li><a href="">小米手机</a></li>
						<li><a href="">黑鲨手机</a></li>
					</ul>
					<ul class="clear second-sort">
						<span class="label">二级分类:</span>
						<li class="active"><a href="">全部</a></li>
						<li><a href="">红米手机</a></li>
						<li><a href="">小米手机</a></li>
						<li><a href="">黑鲨手机</a></li>
					</ul>
				</div>
			</div>
			<div class="order">
				<div class="container">
					<ul class="clear">
						<li class="active"><a href="">综合</a></li>
						<li><a href="">新品</a></li>
						<li><a href="">销量</a></li>
						<li><a href="">价格</a></li>
					</ul>
				</div>
			</div>
			<div class="goods container">
				<ul class="clear">
					<li>
						<a href="">
							<div class="img">
								<img src="imgs/default.jpg" >
							</div>
							<h2 class="desc">黑鲨4S 12+256G</h2>
							<p class="price">3299元 起</p>
							<div class="thumbs">
								<ul class="clear">
									<li><img src="imgs/default.jpg" ></li>
									<li><img src="imgs/default.jpg" ></li>
									<li><img src="imgs/default.jpg" ></li>
								</ul>
							</div>
							<div class="flags">
								<span>赠</span>
								<span>加价购</span>
							</div>
						</a>
					</li>
					<li>
						<a href="">
							<div class="img">
								<img src="imgs/default.jpg" >
							</div>
							<h2 class="desc">黑鲨4S 12+256G</h2>
							<p class="price">3299元 起</p>
							<div class="thumbs">
								<ul class="clear">
									<li><img src="imgs/default.jpg" ></li>
									<li><img src="imgs/default.jpg" ></li>
									<li><img src="imgs/default.jpg" ></li>
								</ul>
							</div>
							<div class="flags">
								<span>赠</span>
								<span>加价购</span>
							</div>
						</a>
					</li>
					<li>
						<a href="">
							<div class="img">
								<img src="imgs/default.jpg" >
							</div>
							<h2 class="desc">黑鲨4S 12+256G</h2>
							<p class="price">3299元 起</p>
							<div class="thumbs">
								<ul class="clear">
									<li><img src="imgs/default.jpg" ></li>
									<li><img src="imgs/default.jpg" ></li>
									<li><img src="imgs/default.jpg" ></li>
								</ul>
							</div>
							<div class="flags">
								<span>赠</span>
								<span>加价购</span>
							</div>
						</a>
					</li>
					<li class="r">
						<a href="">
							<div class="img">
								<img src="imgs/default.jpg" >
							</div>
							<h2 class="desc">黑鲨4S 12+256G</h2>
							<p class="price">3299元 起</p>
							<div class="thumbs">
								<ul class="clear">
									<li><img src="imgs/default.jpg" ></li>
									<li><img src="imgs/default.jpg" ></li>
									<li><img src="imgs/default.jpg" ></li>
								</ul>
							</div>
							<div class="flags">
								<span>赠</span>
								<span>加价购</span>
							</div>
						</a>
					</li>
					
					
					<!-- 又一行 -->
					<li>
						<a href="">
							<div class="img">
								<img src="imgs/default.jpg" >
							</div>
							<h2 class="desc">黑鲨4S 12+256G</h2>
							<p class="price">3299元 起</p>
							<div class="thumbs">
								<ul class="clear">
									<li><img src="imgs/default.jpg" ></li>
									<li><img src="imgs/default.jpg" ></li>
									<li><img src="imgs/default.jpg" ></li>
								</ul>
							</div>
							<div class="flags">
								<span>赠</span>
								<span>加价购</span>
							</div>
						</a>
					</li>
					<li>
						<a href="">
							<div class="img">
								<img src="imgs/default.jpg" >
							</div>
							<h2 class="desc">黑鲨4S 12+256G</h2>
							<p class="price">3299元 起</p>
							<div class="thumbs">
								<ul class="clear">
									<li><img src="imgs/default.jpg" ></li>
									<li><img src="imgs/default.jpg" ></li>
									<li><img src="imgs/default.jpg" ></li>
								</ul>
							</div>
							<div class="flags">
								<span>赠</span>
								<span>加价购</span>
							</div>
						</a>
					</li>
					<li>
						<a href="">
							<div class="img">
								<img src="imgs/default.jpg" >
							</div>
							<h2 class="desc">黑鲨4S 12+256G</h2>
							<p class="price">3299元 起</p>
							<div class="thumbs">
								<ul class="clear">
									<li><img src="imgs/default.jpg" ></li>
									<li><img src="imgs/default.jpg" ></li>
									<li><img src="imgs/default.jpg" ></li>
								</ul>
							</div>
							<div class="flags">
								<span>赠</span>
								<span>加价购</span>
							</div>
						</a>
					</li>
					<li class="r">
						<a href="">
							<div class="img">
								<img src="imgs/default.jpg" >
							</div>
							<h2 class="desc">黑鲨4S 12+256G</h2>
							<p class="price">3299元 起</p>
							<div class="thumbs">
								<ul class="clear">
									<li><img src="imgs/default.jpg" ></li>
									<li><img src="imgs/default.jpg" ></li>
									<li><img src="imgs/default.jpg" ></li>
								</ul>
							</div>
							<div class="flags">
								<span>赠</span>
								<span>加价购</span>
							</div>
						</a>
					</li>
				</ul>
			</div>
		</div>
		
		<!-- 底部 -->
		<div class="site-footer">
			<div class="container">
				<div class="footer-service">
					<ul class="clear">
						<li><a href=""><i class="mi-icon icon-util"></i>预约维修服务</a></li>
						<li><a href=""><i class="mi-icon icon-log"></i>7天无理由退货</a></li>
						<li><a href=""><i class="mi-icon icon-diamond"></i>15天免费换货</a></li>
						<li><a href=""><i class="mi-icon icon-heart"></i>满69包邮</a></li>
						<li><a href=""><i class="mi-icon icon-location"></i>520余家售后网点</a></li>
					</ul>
				</div>
			</div>
		</div>

	<!--引入jQuery-->
		<script type="text/javascript" th:src="@{/js/jquery-3.6.0.js}"></script>
	<!--引入search.js-->
		<script type="text/javascript" th:src="@{/js/search.js}"></script>
	<!--获取参数-->
		<script type="text/javascript">
			var bookSortId = [[${param.bookSortId == null ? -1 : param.bookSortId}]];
			var name = "[[${param.name == null ? null : param.name}]]";
			// 异步搜索
			searchGoods(name,bookSortId);
			//加载一级分类
			getFirstSort();
		</script>
	</body>
</html>
